package dfbz.homework1;

public class Coder {
    private String name;
    private int num;
    private int salary;

    public Coder() {
    }

    public Coder(String name, int num, int salary) {
        this.name = name;
        this.num = num;
        this.salary = salary;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }

    public int getSalary() {
        return salary;
    }

    public void setSalary(int salary) {
        this.salary = salary;
    }
    public void intro(){
        System.out.println("程序员姓名"+this.name);
        System.out.println("工号"+this.num);
    }
    public void showSalary(){
        System.out.println("基本工资为"+this.salary+","+"奖金无");
    }
    public void work(){
        System.out.println("正在努力写代码...." );
    }
}
